﻿public class code012{
	public static void main(String[] args){
		int shirtprice = 245;
		int shoeprice = 570;
		int padprice = 320;
		int shirtNo = 2;
		int shoeNo = 1;
		int padNo = 1;
		double discount = 0.8;
		double finalpay = (shirtprice * shirtNo + shoeprice * shoeNo + padprice * padNo)*
discount;
		System.out.println("消费总金额:" + finalpay);
	}
}
